import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import path from "node:path"

const resolve = (p: string) => path.resolve(process.cwd(), p)

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    react({
      jsxImportSource: '@emotion/react'
    })
  ],
  resolve: {
    alias: {
      "@modules": resolve("./modules"),
      "@router": resolve("./src/router"),
      "@store": resolve("./src/store"),
      "@shared": resolve("./src/shared"),
      "@assets": resolve("./src/assets"),
      "@constants": resolve("./src/constants"),
      "@components": resolve("./src/components"),
    }
  }
})
